<?php
namespace system\components;

/**
 * {@link DocumentComponent} element that holds exception stacktrace related info.
 * it used in context of {@link ExceptionComponent}
 *
 * <code>
 *      <file></file>
 *      <line></line>
 *      <function></function>
 *      <args></args>
  * </code>
 *
 * @see DocumentComponent,ExceptionComponent
 * @package system\components
 * @author Pavel Egorov {@link mailto:pavel@egorov.ru pavel@egorov.ru}
 * @version 0.0.1 * $Revision$
 * @copyright Copyright (c) 2011, Pavel Egorov
 */
class ExceptionTraceLineComponent extends DocumentComponent{
    public $file;
    public $line;
    public $function;
    public $args;

    function __construct($traceLineArray) {
        parent::__construct("traceLine");
        $this->file = $traceLineArray['file'];
        $this->line = $traceLineArray['line'];
        $this->function = $traceLineArray['function'];
        // FIX here
        //$this->args = implode('-',$traceLineArray['args']);
    }
}
?>
